/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package world;

import creature.AntCreature;
import creature.PredatorCreature;
import java.util.ArrayList;
import place.TargetPlace;

/**
 *
 * @author user
 */
public class StateRepository {

        private ArrayList<TargetPlace> targets;
        private ArrayList<AntCreature> ants;
        private ArrayList<PredatorCreature> predators;

        public StateRepository() {
            ants = new ArrayList();
            targets = new ArrayList<TargetPlace>();
            predators = new ArrayList();

        }

        public void addAnt(AntCreature a) {
            ants.add(a);

        }

        public void addTarget(TargetPlace t) {
            targets.add(t);
        }

        public void addPredator(PredatorCreature p) {
            predators.add(p);
        }

    public ArrayList<AntCreature> getAnts() {
        return ants;
    }

    public ArrayList<TargetPlace> getTargets() {
        return targets;
    }

    public ArrayList<PredatorCreature> getPredators() {
        return predators;
    }





}
